#ifndef AST_DECLARATIONS_STRUCT_OR_UNION_H
#define AST_DECLARATIONS_STRUCT_OR_UNION_H

#include "../ASTNode.h"

/*
C99  6.7.2.1
struct-or-union:
		struct
		union
*/
class StructOrUnion : public ASTNode
{
public:
	enum{
		_struct,
		_union,
	};
protected:
	StructOrUnion(void)
		: ASTNode(ASTNode::struct_or_union){};
public:
	StructOrUnion(int iType)
		: ASTNode(ASTNode::struct_or_union)
		, m_iType(iType){};

	virtual ~StructOrUnion(void);

	virtual void					codeGen();

	int								getType() const{return m_iType;};
protected:
	tiny_int						m_iType;
};


#endif

